<template>
  <van-uploader v-model="fileList" preview-size="60" :after-read="fn" />
  <img :src="src" alt="">
</template>

<script setup>
// import dd from './dd.js'
import { ref } from 'vue';
// console.log(fileList);
const fileList = ref([])
const src = ref(null)

function fn(a, b) {
  src.value = '@/img/植物图片/' + a.file.name
  console.log(src.value);

}


console.log(fileList.value);

</script>

<style lang="scss" scoped>

</style>
